package com.xuecheng.media.agent;

import com.xuecheng.api.content.teachplan.dto.TeachplanMediaDTO;
import com.xuecheng.common.constant.XcFeignServiceNameList;
import com.xuecheng.common.domain.response.RestResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * - @author by 姜暄煊
 * - @Date 12.15
 * - @Description
 */
@FeignClient(value = XcFeignServiceNameList.XC_CONTENT_SERVICE)
public interface ContentApiAgent {

    @GetMapping("/content/media/{mediaId}")
    RestResponse<TeachplanMediaDTO> getMediaById(@PathVariable("mediaId") Long mediaId);
}
